package com.wenjiang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wenjiang.common.vo.MonthPayCount;
import com.wenjiang.common.vo.OrderInfoVo;
import com.wenjiang.entity.MallOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lwj
 * @since 2021-07-20
 */
public interface MallOrderMapper extends BaseMapper<MallOrder> {
    //插入中间表
    public void insertOrder(@Param("orderId") Long orderId,@Param("goodId") Long goodId,@Param("goodCount") int goodCount);


    //查询用户所有的订单
    public List<OrderInfoVo> getUserOrder(Long userId);


    public  List<Integer> getOrderGoods(Long orderId);


    //查询所有成交订单所有金额
    public Integer allPayMoney();


    //查询最近6个月订单交易情况
    public  List<MonthPayCount> getNearMonthPayCount();

}
